import cn.zengchen233.dao.impl.UserServiceImpl;
import cn.zengchen233.dao.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zengchen
 * @title UserController
 * @description TODO
 * @create 2023/1/6 10:18
 */
public class UserController {
    @Test
    public void test1() {
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService bean = (UserService) app.getBean("userService");
        bean.save();
    }
}
